package org.blame.rabbitmqquorum.listener;


import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class QuorumListener {

    @RabbitListener(queues = "quorum.queue")
    public void receiveMessage(Message message){
        System.out.println("接收的消息："+message);

    }
}
